import http from "@/utils/request";

export default {
    //获取电量
    async getYslytrydlqkbList(pageNo, pageSize,startDate,endDate) {
        return await http.get("/api/bdsydsj/listToRydd", { pageNo, pageSize,startDate,endDate });
    },

    //新增
    async addYslytrydlqkb(params) {
        return await http.post("/api/yslytrydlqkb/add", params);
    },
    //修改
    async updateYslytrydlqkb(params) {
        return await http.put("/api/yslytrydlqkb/update", params)
    },
    //删除
    async deleteYslytrydlqkb(params) {
        return await http.delete("/api/yslytrydlqkb/delete/{id}", params)
    },


    //获取电量
    async getCxdlList(pageNo, pageSize,startDate,endDate) {
      return await http.get("/api/scglDlXlyx/listToRydd2", { pageNo, pageSize,startDate,endDate });
    },

};
